package com.jprocms.module.cms.controller.admin.channel.vo;

import io.swagger.v3.oas.annotations.media.Schema;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.util.Collection;

@AllArgsConstructor
@NoArgsConstructor
@Schema(description = "栏目前台查询Request Request VO")
@Data
public class ChannelFrontListReqVO {

    @Schema(description = "站点ID")
    private Long siteId;

    @Schema(description = "父栏目ID")
    private Long parentId;

    @Schema(description = "访问路径")
    private Collection<String> paths;

    @Schema(description = "是否加入回收站（0-未加入  1-已加入）")
    private Integer recycleStatus;

    public static ChannelFrontListReqVO of(Long siteId, Long parentId, Collection<String> paths, Integer recycleStatus) {
        return new ChannelFrontListReqVO(siteId, parentId, paths, recycleStatus);
    }

    public static ChannelFrontListReqVO of(Long siteId, Collection<String> paths, Integer recycleStatus) {
        return new ChannelFrontListReqVO(siteId, null, paths, recycleStatus);
    }
}
